import React, { Component } from 'react';
import "./Details.css"
//商品详情页面
class Details extends Component {
    constructor(props) {
        super(props)
        this.item = props.location.state.goods
    }

    render() {
        return (
            <div className="Details">
                <div className="Details_header">
                    商品详情
                </div>
                <div className="Details_content">
                    <img src={this.item.mainPic} width="100%"></img>
                    <p>{this.item.title}</p>
                </div>
            </div>
        );
    }

}

export default Details;
